import request from '@/utils/request'

export function login(username, password) {
    return request({
        url: '/dgut/getOneHandlersMessage',
        method: 'get',
        params: {
            username,
            password
        },
    })
}

export function leave(userId) {
    return request({
        url: '/dgut/exit',
        method: 'post',
        params: {
            userId
        },
    })
}

export function getUserName(userId) {
    return request({
        url: '/dgut/getOneEmployeesMessage',
        method: 'get',
        params: {
            eid: userId
        },
    })
}

export function update(heid,passwords1,passwords) {
    return request({
        url: '/dgut/updateHandlerPassword',
        method: 'put',
        params: {
            heid,
            passwords1,
            passwords
        },
    })
}